BINDIR=build

.PHONY: all debug release bdebug brelease builddir clean

all: release

debug: builddir bdebug

release: builddir brelease

bdebug:
	cd ${BINDIR} && cmake -DCMAKE_BUILD_TYPE=Debug .. && make -j$(nproc)

brelease:
	cd ${BINDIR} && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j$(nproc)

builddir:
	mkdir -p ${BINDIR}

clean:
	rm -fr ${BINDIR}

